package ${entityPkg};

<#compress>

<#if GeneratorInfo.hasSwagger == "1">
import io.swagger.v3.oas.annotations.media.Schema;
</#if>

import lombok.Data;
import lombok.EqualsAndHashCode;
import cn.lycode.common.core.domain.BaseEntity;
import ${voPkg}.${voClassName};
import java.io.Serializable;
<#list importPackages as pkg>
import ${pkg};
</#list>
</#compress>

/**
 * ${tableComment}
 *
 * @since ${datetime}
 * @author ${author}
 */
@Data

<#if GeneratorInfo.hasSwagger == "1">
@Schema(description = "${tableComment}")
</#if>
public class ${entityClassName} extends BaseEntity implements Serializable{
    private static final long serialVersionUID = 1L;

<#-- ----------  BEGIN 字段循环遍历  ---------->
<#list columnsExBase as field>
    <#if GeneratorInfo.hasSwagger == "1">
    @Schema(description ="${field.columnComment}")
    </#if>
    private ${field.javaType} ${field.javaField}; //${field.columnComment}
</#list>

    public ${voClassName} buildVO() {
        ${voClassName} vo = new ${voClassName}();
    <#list columns as field>
        <#if field.isList == "1" >
        vo.set${field.upCamelField}(this.get${field.upCamelField}());
        </#if>
    </#list>
        return vo;
    }
<#-- ----------  BEGIN 字段循环遍历  ---------->
}